<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>检测变量是否为资源类型</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.is-resource" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">is_resource</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">is_resource</span> &mdash; <span class="dc-title">
     检测变量是否为资源类型
    </span></p>

   </div>
   <div class="refsect1 unknown-unknown-unknown-unknown-unknown-unknown-seealsu" id="refsect1-function.is-resource-unknown-unknown-unknown-unknown-unknown-unknown-seealsu">
    <h3 class="title">描述</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>is_resource</strong></span>
       ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$var</code></span>
      ) : <span class="type">bool</span></div>

    <p class="para rdfs-comment">
     如果给出的参数 <code class="parameter">var</code> 是 <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span> 类型，<span class="function"><strong>is_resource()</strong></span>
     返回 <strong><code>TRUE</code></strong>，否则返回 <strong><code>FALSE</code></strong>。
    </p>
    <p class="para">
     查看 <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span> 类型文档获取更多的信息。
    </p>
   </div>

  </div></div></div></body></html>